package com.xinyue.dz.dao;

import com.xinyue.dz.bean.RoleAction;
import java.util.List;
import com.xinyue.dz.bean.Role;
import com.xinyue.dz.bean.Action;

public interface RoleActionDao {
	//默认方法
	public void save(RoleAction entity);
	public Integer deleteById(int id);
	
	//find方法
	public Long queryActionCountByRoleId(int roleId);
	public List<Action> queryActionByRoleId(int roleId);
	public List<Action> queryActionByRoleId(int roleId, int begin, int count);
	public Long queryRoleCountByActionId(int actionId);
	public List<Role> queryRoleByActionId(int actionId);
	public List<Role> queryRoleByActionId(int actionId, int begin, int count);
	public Integer deleteByRoleId(int roleId);
	public Integer deleteByActionId(int actionId);
}